package day05;

/**
 * 说明:
 *
 * @author: luohaowei
 * @date:2023/2/16
 **/
public class yzsh {
    public static void main(String[] args) {
        int sum=0;
        for(int i=1;i<=100;i++){
            sum=sum+i;
        }
        System.out.println("sum="+sum);
        /*
                sun=0
          i=1   sum=1
          i=2   sum=1+2
          i=3   sum=1+2+3
          i=4   sum=1+2+3+4
          ...   .....
          i=100 sum=1+2+3+4+...+100
          i=101 flase
         */
    }
}
